{extend name="index/iframe" /}

{block name="content"}
<div style="padding: 10px;">
    <table id="tableBox" lay-filter="tableBox"></table>
</div>
{/block}

{block name="css"}{/block}

{block name="js"}
<script>
    layui.use(['form', 'table'], function(){
        var $ = layui.$
            ,table = layui.table
            ,load = layer.load();

        //表格初始化
        table.render({
            elem: '#tableBox'
            ,height: '610'
            ,url: '{:url("AuditCpsMng/view")}'
            ,page: true
            ,where: {id: {$Think.get.id}}
            ,limit: 20
            ,limits: [20,40,60]
            ,loading: true
            ,id: 'tableId'
            ,done: function (res, curr, count) {
                layer.close(load);
            }
            ,cols: [[
                {field:'cps_id', title: '渠道ID'}
                ,{field:'cps_name', title: '渠道名称'}
                ,{field:'game_id', title: '游戏ID'}
                ,{field:'game_name', title: '游戏名称'}
                ,{field:'money', title: '充值金额'}
                ,{field:'pay_rate', title: '分成'}
                ,{field:'channel_rate', title: '通道费'}
                ,{field:'tax_rate', title: '税率'}
                ,{field:'part_money', title: '分成金额'}
            ]]
        });

    });
</script>
{/block}